/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class LowPressurePump {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010080052';
    }

    get categoryName() {
        return '\u4f4e\u538b\u6c34\u6cf5';
    }

    getGear(params) {
        return command({
            method: 'getGear',
            methodId: 'pGoxwGbr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPumpSpeed(params) {
        return command({
            method: 'getPumpSpeed',
            methodId: 'p1vZ5xLd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pZguA34A',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTemperature(params) {
        return command({
            method: 'getTemperature',
            methodId: 'pDrhMbUZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWaterPressure(params) {
        return command({
            method: 'getWaterPressure',
            methodId: 'pgh0sqKL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setGear(params) {
        return command({
            method: 'setGear',
            methodId: 'ppAXNOtU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setPumpSpeed(params) {
        return command({
            method: 'setPumpSpeed',
            methodId: 'pUPQZjBC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH32fiw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default LowPressurePump;
